<?php


namespace app\admin\model;


class PurchaseProductPartModel extends BaseModel
{
    protected $name='purchase_product_part';


    public static function add($data){
        return self::insertGetId($data);
    }
    public static function getProductPartBy($where){
        return self::where($where)->find();
    }
    public static function updateDate($where,$update){
        return self::where($where)->update($update);
    }

}